﻿/**
 * @file viewdatarefnodeview.h
 * @author huangxb
 * @email 18228033207@163.com
 * @date 2024.04.24
 * @license MIT License
 * @brief 显示数据的视图接口.
 *
 * @htmlonly
 * <span style="font-weight: bold">History</span>
 * @endhtmlonly
 * Version|Auther|Date|Describe
 * ------|----|------|--------
 * V1.0|huangxb|2024.04.24|创建
 */
#ifndef VIEWDATAREFNODEVIEW_H
#define VIEWDATAREFNODEVIEW_H

class CViewDataController;

class CViewDataRefNodeView
{
protected:
    CViewDataController* m_pController = nullptr;

public:
    virtual ~CViewDataRefNodeView() = default;

    void SetViewDataController(CViewDataController* pController);
    CViewDataController* GetController() const;

    virtual void OnViewDataRefNodeLoaded() = 0;
};

inline void CViewDataRefNodeView::SetViewDataController(CViewDataController* pController)
{
    m_pController = pController;
}

inline CViewDataController* CViewDataRefNodeView::GetController() const
{
    return m_pController;
}

#endif // VIEWDATAREFNODEVIEW_H
